package com.adtech.adms.system.datadictionary.pojo;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 实体类
 * @author Dormin 
 * @since 2011-6-30 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
@JsonAutoDetect
@JsonIgnoreProperties(value={"hibernateLazyInitializer"})
public class CompanyLevel implements Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String name;
	private Integer level;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}

	public enum CompanyLevelEnum{
		DEP_SOUTH_GRID {
			@Override
			public long getId() {
				return 1;
			}
			@Override
			public int getLevel() {
				return 1;
			}
		},
		DEP_PROVINCE {
			@Override
			public long getId() {
				return 2;
			}
			@Override
			public int getLevel() {
				return 2;
			}
		},
		DEP_CITY {
			@Override
			public long getId() {
				return 3;
			}
			@Override
			public int getLevel() {
				return 3;
			}
		}
		,
		DEP_COUNTRY {
			@Override
			public long getId() {
				return 4;
			}
			@Override
			public int getLevel() {
				return 4;
			}
		};
		public abstract long getId();
		public abstract int getLevel();
	}


}
